package com.zzl.bonds.ticket.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 凭证轨迹
 *
 * @author gull
 * @date 2022-07-06 13:43:53
 */
@Data
@TableName("t_ticket_flow_chart")
@ApidocModel
@SuppressWarnings("javadoc")
public class TicketFlowChartEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "标题")
    private String title;
    @ApidocModelProperty(description = "金额前缀")
    private String moneyAmountFirst;
    @ApidocModelProperty(description = "发起方名称")
    private String initiatorEnterpriseName;
    @ApidocModelProperty(description = "签收方名称")
    private String signEnterpriseName;
    @ApidocModelProperty(description = "金额")
    private String moneyAmount;
    @ApidocModelProperty(description = "金额大写")
    private String uppercaseAmount;
    @ApidocModelProperty(description = "拥有企业id")
    private String enterpriseId;
    @ApidocModelProperty(description = "票据编号")
    private String ticketNo;
    @ApidocModelProperty(description = "第一个时间")
    private String firstTime;
    @ApidocModelProperty(description = "第二个时间")
    private String twoTime;
    @ApidocModelProperty(description = "对应的申请id")
    private String applyId;
    @ApidocModelProperty(description = "上级id,0为父级")
    private String parentId;
    @ApidocModelProperty(description = "对应的票据id")
    private String ticketId;
    @ApidocModelProperty(description = "类别 0转让，1融资，2开立")
    private String type;
    @ApidocModelProperty(description = "票据的开立的申请id，方便查询出该票所有有关联")
    private String ticketOpenId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "createTime", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "updateTime", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @ApidocModelProperty(description = "creatorId")
    private Integer creatorId;
    @ApidocModelProperty(description = "updaterId")
    private Integer updaterId;
    @ApidocModelProperty(description = "remark")
    private String remark;
    @ApidocModelProperty(description = "isDeleted")
    @TableField(value = "is_deleted",fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted;
    @ApidocModelProperty(description = "票据状态 0 蓝色，1绿色，2黄色，3灰色")
    private String ticketStatus;

}
